package ovm.gui.buttons.table.users;

import ovm.gui.buttons.table.AbstractTableButton;
import ovm.gui.views.administration.users.DeleteUserView;

import static ovm.application.MainApplication.*;

public class DeleteUserButton extends AbstractTableButton {

    private String login;

    public DeleteUserButton(String caption, String login) {
        super(caption);
        this.login = login;
    }

    @Override
    public void buttonClick(ClickEvent event) {
        navigator.setMainView(new DeleteUserView(login));
    }
}
